﻿<UserControl x:Class="DomusDotNet.Sbm.Client.SL4.Views.BookListItemView"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
			 xmlns:cal="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"
			 mc:Ignorable="d"
			 d:DesignHeight="300"
			 d:DesignWidth="400">


	<Grid  >
		<Grid.RowDefinitions>
			<RowDefinition></RowDefinition>
			<RowDefinition></RowDefinition>
			<RowDefinition></RowDefinition>
			
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="2*"></ColumnDefinition>
			<ColumnDefinition Width="*"></ColumnDefinition>
			<ColumnDefinition Width="*"></ColumnDefinition>
		</Grid.ColumnDefinitions>

		<TextBlock Grid.ColumnSpan="2"
				   Grid.Row="0"
				   Text="{Binding Path=Title}"
				   Margin="5"
				   FontWeight="ExtraBold" />

		<TextBlock Grid.ColumnSpan="2"
				   Grid.Row="1"
				   Text="{Binding Path=Authors, Converter={StaticResource toStringJoin}}"
				   FontWeight="Medium"
				   Margin="10 5 5 5" />
		<StackPanel Orientation="Horizontal"
					Grid.Column="0"
					Grid.Row="2"
					Margin="15 5 5 5">
			<TextBlock Text="Editore:" />
			<TextBlock  Text="{Binding Path=Editor}" />
		</StackPanel>

		<StackPanel Orientation="Horizontal"
					Grid.Column="1"
					Grid.Row="2"
					Grid.ColumnSpan="2"
					Margin="5">
			<TextBlock Text="Data Pubblicazione:"
					   FontStyle="Italic" />
			<TextBlock Text="{Binding Path=PublishDate, StringFormat=\{0:d\}}"
					   FontStyle="Italic" />
		</StackPanel>

		<TextBlock Grid.Column="2"
				   Grid.Row="0"
				   Grid.RowSpan="2"
				   Text="{Binding Path=BookStatus}"
				   VerticalAlignment="Center"
				   HorizontalAlignment="Center" />


		
	</Grid>


</UserControl>
